package com.ydy.vo;

import lombok.Data;

import java.io.Serializable;

@Data
public class JsonResult implements Serializable {
    private String code;
    private String msg;
    private Object data;
    private String password;

    public JsonResult(String number ,String msg, Object o){
        this.code=number;
        this.data= o;
        this.msg= msg;
    }
    public static JsonResult fail(String msg){return  new JsonResult("500",msg,null);}
    public static JsonResult suc(Object o ){
        return new JsonResult("200",null,o);
    }
}
